<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/boostrap-hover-dropdown.js">
</script>
<div class="container-fluid">
    <div class="col-md-1">
    </div>
    <div class="col-md-7" style="line-height:50px;">
        <c:forEach var="i" begin="1" end="${sessionScope.titleAllList.size()}">
            <div class="col-md-7">
                <a href="${pageContext.request.contextPath }/article?method=details&articleId=${sessionScope.titleAllList.get(i-1).getArticleId()}&userId=${sessionScope.titleAllList.get(i-1).getUserId()}"
                   class="navbar-link">
                    <li>${sessionScope.titleAllList.get(i-1).getTitle()}</li>
                </a>
            </div>
        </c:forEach>
    </div>
    <div class="col-md-4" style="line-height:30px;">
        <h1><font style="color:#DCA1B3">热门帖子</font><font style="color:red;">TOP5</font></h1>

        <c:forEach var="i" begin="1" end="${sessionScope.hotTitleList.size()}">
            <div class="col-md-10">
                <a href="${pageContext.request.contextPath }/article?method=details&articleId=${sessionScope.hotTitleList.get(i-1).getArticleId()}&userId=${sessionScope.hotTitleList.get(i-1).getUserId()}"
                " class="navbar-link">
                <li style="color:#DA7764"><font
                        style="color:#6A448E;">${i}</font>${sessionScope.hotTitleList.get(i-1).getTitle()}</li>
                </a>
                <font style="color:#A5A5C2;float:right;">${sessionScope.hotTitleList.get(i-1).getClickNum()}</font>
            </div>
        </c:forEach>

    </div>
</div>